package mysql

import "gorm.io/gorm"

type Products struct {
	gorm.Model
	Image  string `json:"image" gorm:"type:varchar(200);not null;comment:'商品图片'"`
	Video  string `json:"video" gorm:"type:varchar(200);comment:'商品视频'"`
	Name   string `json:"name" gorm:"type:varchar(20);not null;comment:'商品名称'"`
	Num    string `json:"num" gorm:"type:varchar(30);comment:'商品编码'"`
	WhyBuy string `json:"whyBuy" gorm:"type:varchar(50);comment:'商品卖点'"`
	UserId int    `json:"userId"`
	Like   int    `json:"like"`
}
